<div id="cms">
<table class="table">
	<tr>
		<th width="20">ID</th>
{assign var="pkSimpleTable" value=$smarty.get.pkSimpleTable}
{foreach from=$SimpleTable_Columns item=i name=fe}
		<th>{$i->title}</th>
{/foreach}
		<th width="70">Bearbeiten</th>
	</tr>
	
{foreach from=$SimpleTable_Rows item=i name=fe}
	
	{assign var="pk" value=$i->getId()}
	
	<tr{if $smarty.get.markid==$pk ||$smarty.foreach.fe.first || $smarty.foreach.fe.last} class="{if $smarty.get.markid==$pk}marked{/if}{if $smarty.foreach.fe.first} first{/if}{if $smarty.foreach.fe.last} last{/if}"{/if}>
		<td>{$i->getId()}</td>
{foreach from=$i->getCells() item=c}
			<td nowrap style="overflow: hidden;">{$c}</td>
{/foreach}
		
		<td>
			{html_linkbutton icon="write.png" text="Bearbeiten" link="$Sys_CurrentPageURL&amp;method=editRow&pkSimpleTable=$pkSimpleTable&amp;id=$pk" type="icon" size="20"}
			{html_linkbutton icon="delete.png" text="L&ouml;schen" link="$Sys_CurrentPageURL&amp;method=deleteRow&pkSimpleTable=$pkSimpleTable&amp;id=$pk" type="icon" size="20"}
		</td>
	</tr>		
{/foreach}
</table>
</div>